<#if serviceimPackage??>
package ${serviceimPackage};
</#if>

<#list serviceimports as imp>
import  ${imp};
</#list>
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
<#if (open_spring_annotate?string("1","0"))=="0">
@Service("extendsService")
</#if>
public  class  ExtendsServiceImpl {
<#if (open_spring_annotate?string("1","0"))=="0">
    @Autowired
</#if>
    ExtendsMapper extendsMapper;

    <#list serviceselectmethod as select>
        public List<${select.returnType}> ${select.methodname}(<#list select.parameter?keys as par>${par} ${select.parameter[par]}</#list>){
        return extendsMapper.${select.methodname}(<#list select.parameter?keys as par> ${select.parameter[par]}</#list>);
        }

    </#list>
<#list serviceupdatemethod as update>
        public int ${update.methodname}(<#list update.parameter?keys as par>${par} ${update.parameter[par]}</#list>){
        return extendsMapper.${update.methodname}(<#list update.parameter?keys as par> ${update.parameter[par]}</#list>);
        }

</#list>
<#list servicedeletemethod as delete>
        public int ${delete.methodname}(<#list delete.parameter?keys as par>${par} ${delete.parameter[par]}</#list>){
        return extendsMapper.${delete.methodname}(<#list delete.parameter?keys as par> ${delete.parameter[par]}</#list>);
        }

</#list>
<#list serviceinsertmethod as insert>
        public int ${insert.methodname}(<#list insert.parameter?keys as par>${par} ${insert.parameter[par]}</#list>){
        return extendsMapper.${insert.methodname}(<#list insert.parameter?keys as par>${insert.parameter[par]}</#list>);
        }

</#list>

}